//
//  SharePLayerView.h
//  MiBaoTu
//
//  Created by admin on 16/9/22.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//  底部弹出框-取消

#import <UIKit/UIKit.h>

typedef enum {
    ShowPlayerType_Moer = 0,   //更多 1个
    ShowPlayerType_MusicMoew,  //每个音乐更多 播放、分享、取消收藏、已下载
    ShowPlayerType_MusicSingleMoew, //音乐更多 2个
    ShowPlayerType_AddNewMusic,    //新建分类
    ShowPlayerType_DownMusic,    //已下载音乐
    ShowPlayerType_StroyAllList, //故事库-大家都在听 播放、分享、收藏、下载
    ShowPlayerType_stroyMore,    //故事库-更多按钮
    ShowPlayerType_stroyCellMore,    //故事库-cell更多按钮 播放、分享、下载
    ShowPlayerType_stroyTabbar,     //故事库4个按钮 最新首发、经典儿歌、人气故事、成长必备
    ShowPlayerType_CollectionDowned, //播放、分享、收藏、已下载
    ShowPlayerType_CancelCollectionDowned, //播放、分享、取消收藏、下载
    ShowPlayerType_Share,      //分享
}ShowPlayerType;

@class SharePLayerView;
@protocol SharePLayerViewDelegate <NSObject>

@optional
- (void)onSelctItemForMoreAddMusic:(SharePLayerView *)view;   //添加
- (void)onSelctItemForMorePlayMusic:(SharePLayerView *)view;  //播放
- (void)onSelctItemForMoreShareMusic:(SharePLayerView *)view; //分享
- (void)onSelctItemForMoreCancelMusicCollection:(SharePLayerView *)view;//取消收藏
- (void)onSelctItemForMoreDownMusic:(SharePLayerView *)view;//下载
- (void)onSelctItemForMoreChangeNewMusicName:(SharePLayerView *)view;//重命名
- (void)onSelctItemForMoreDeleteMusic:(SharePLayerView *)view;//删除
- (void)onSelctItemForMoreCollectionMusic:(SharePLayerView *)view;//收藏

@end

@interface SharePLayerView : UIView

@property (nonatomic,assign)id<SharePLayerViewDelegate>delegate;
@property (nonatomic,assign)ShowPlayerType type;
@property (nonatomic,assign)UIDeviceOrientation     orientation;

- (id)initWithFrame:(CGRect)frame withType:(ShowPlayerType)type;
- (void)onShowInWindow;

@end
